Previous Book Contents Book Index Next

Inside Macintosh: Programming With the Text Encoding Conversion Manager /
Chapter 4 - Unicode Converter Reference / Unicode Converter Constants


Unicode Mapping Versions

When performing conversions, you specify the version of the Unicode mapping table to be used for the conversion. You provide the version number in the mapping version field of the structure UnicodeMapping (page 118) that is passed to a function. A Unicode mapping version is defined by the UnicodeMapVersion data type.

typedefSInt32UnicodeMapVersion;
Instead of explicitly specifying the mapping version of the Unicode mapping table to be used for conversion of a text string, you can specify that the latest version be used. The following enumeration defines the use-latest-mapping constant:

enum {
   kUnicodeUseLatestMapping   = -1
};
Only one constant is defined so far for a specific mapping version—the mapping version used by HFS Plus to convert filenames between MacOS encodings and Unicode. In the future constants may be defined for other specific mapping versions.

enum {
   kUnicodeUseHFSPlusMapping   = 4
};

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 NOV 1997